#include "stdafx.h"
#include "animal.h"



animal::animal(string name)
	:aniName(name),foot(4),finger(5),hand(0),weiba(1)
{
	
	
}

void animal::print()
{
	cout << "animal name is:" << aniName.c_str() << endl;
	cout << "foot=" << foot << "  hand=" << hand << "   finger=" << finger << "    weiba=" << weiba << endl;

}

void animal::eat()
{
	cout << "class animal named:"<<aniName.c_str()<<" is eating" << endl;
}
